export const handleResize = (component)=>{
    const heigth = 227
    const getTableHeight =()=>{
        const windowHeigt = window.innerHeight
        const tableHeight = windowHeigt - heigth
        component.setState({tableHeight:tableHeight})
    }
    window.addEventListener('resize', getTableHeight,false)
    getTableHeight()
}